﻿@model Dziennik_MVC.Models.Entities.Prowadzacy

@{
    ViewBag.Title = "Edycja profilu";
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Edycja konta</legend>
            @Html.HiddenFor(model => model.id_prowadzacego)

            @Html.LabelFor(model => model.login)        
            @Html.TextBoxFor(model => model.login, new { disabled = "disabled" })
            @Html.HiddenFor(model => model.login)
            @Html.ValidationMessageFor(model => model.login)
            
            @Html.HiddenFor(model => model.haslo)
           
            @Html.LabelFor(model => model.imie)       
            @Html.EditorFor(model => model.imie)
            @Html.ValidationMessageFor(model => model.imie)

            @Html.LabelFor(model => model.nazwisko)       
            @Html.EditorFor(model => model.nazwisko)
            @Html.ValidationMessageFor(model => model.nazwisko)

            @Html.LabelFor(model => model.admin)
            @Html.EditorFor(model => model.admin)
            @Html.ValidationMessageFor(model => model.admin)
        <p>
            <input type="submit" value="Zapisz zmiany" />
        </p>
    </fieldset>
    <div>
         @Html.ActionLink("wróć do Profilu", "Profile")
    </div>
}

